﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace StarTrek.UI.Console.MenuItem
{
    class MenuExit:iMenuItem
    {
        private const string ACTION_KEY = "X";
        #region iMenuItem Members

        public bool ProcessSomeRequest(MenuContext Menu, TextWriter sw, TextReader tr)
        {
            Menu.TerminateApplicaiton = (Menu.Action == ACTION_KEY);
            return Menu.TerminateApplicaiton;
        }

        public string MenuAction
        {
            get { return ACTION_KEY; }
        }

        public string Text
        {
            get {return  Properties.Resources.MenuExitText; }
        }

        public string VerboseText
        {
            get {return Properties.Resources.MenuExitVerbose; }
        }

        #endregion
    }
}
